package com.hisense.hiioc.hismartplate.entity.table;

import com.alibaba.fastjson.annotation.JSONField;
import com.hisense.hiioc.hismartplate.base.IBaseEntity;
import com.hisense.hiioc.hismartplate.entity.table.enumdefine.ScreenType;
import com.hisense.hiioc.hismartplate.entity.table.typehandler.ScreenTypeHandler;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.servlet.annotation.HandlesTypes;
import java.util.Date;

/**
 * @Author: almo
 * @Date: 2018/12/10 上午9:57
 * @Version 1.0
 */
@Data
@Table(name = "DeviceSnapDB")
public class DeviceSnapEntity implements IBaseEntity {

    @Id
    private int id;

    private String deviceID;   //设备唯一ID

    private String screenID;  //设备屏幕唯一ID, unique

    private String screenType;

    private String region;        //1:station,0:community

    private String phone;

    private String coordinate;

    private String snapPath;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date snapTime;

    private int connectState; //1:在线，0:离线

    private String remarks; //备注

}
